home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / HIERSV.PAK / SVRDOC.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  66 lines

  1. // svrdoc.h : interface of the CServerDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #define MAX_LEVEL   20
  14.  
  15. class CServerNode;
  16.  
  17. class CServerDoc : public COleServerDoc
  18. {
  19. protected: // create from serialization only
  20.     CServerDoc();
  21.     DECLARE_DYNCREATE(CServerDoc)
  22.  
  23. // Attributes
  24. public:
  25.     LOGFONT m_logfont;          // font in use for the document
  26.     COLORREF m_crText;
  27.     CServerNode* m_pRoot;
  28.  
  29.     // private clipboard format
  30.     static CLIPFORMAT NEAR m_cfPrivate;
  31.  
  32. // Operations
  33. public:
  34.     CFont* SelectDocFont(CDC* pDC, CFont& font);
  35.     int CServerDoc::DrawTree(CDC* pDC, CPoint ptStart, CServerNode* pItemSel,
  36.         CServerNode* pRoot = NULL);
  37.     void CalcBounding(CDC* pDC, CServerNode* pItemStart,
  38.         CPoint ptStart, CSize& sizeMax);
  39.  
  40. // Implementation
  41. public:
  42.     virtual COleServerItem* OnGetEmbeddedItem();
  43.     virtual COleServerItem* OnGetLinkedItem(LPCTSTR lpszItemName);
  44.     virtual ~CServerDoc();
  45.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  46.     void SerializeFontInfo(CArchive& ar);
  47.     virtual void DeleteContents();
  48.     virtual void OnSetItemRects(LPCRECT lpPosRect, LPCRECT lpClipRect);
  49. #ifdef _DEBUG
  50.     virtual void AssertValid() const;
  51.     virtual void Dump(CDumpContext& dc) const;
  52. #endif
  53. protected:
  54.     virtual BOOL    OnNewDocument();
  55.  
  56. // Generated message map functions
  57. protected:
  58.     //{{AFX_MSG(CServerDoc)
  59.     afx_msg void OnOptionsFont();
  60.     afx_msg void OnCancelInplace();
  61.     //}}AFX_MSG
  62.     DECLARE_MESSAGE_MAP()
  63. };
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66.